var mongoose = require("mongoose");
const config = require("./index");
var db = mongoose.connection;

const opt = {
  user: "qingzhi",
  pass: "m3tK6GYL46mChfHB",
};
mongoose.connect(config.URL, opt);
db.on("error", console.error.bind(console, "connection error:"));
db.on("open", function () {
  // we're connected!
  console.log("******my数据库连接成功******");
});
